<%@ Page Language="C#" MasterPageFile="~/includes/main.master" AutoEventWireup="true"
    CodeFile="set-insurance-reminder.aspx.cs" MaintainScrollPositionOnPostback="true"
    Async="true" Inherits="car_insurance_set_insurance_reminder" Title="Set Your Car Insurance Renewal Reminder @ CompareXpress" %>

<%@ Register Src="../controls/usrCompanyBigLogoByServices.ascx" TagName="usrCompanyBigLogoByServices"
    TagPrefix="uc12" %>
<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Src="../controls/usrPhoneNo.ascx" TagName="usrPhoneNo" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script src="../includes/ValidationError-NEW.js" type="text/javascript"></script>

    <script src="../includes/ValidationEffect-NEW.js" type="text/javascript"></script>

    <script src="../includes/LoadingProgress.js" type="text/javascript"></script>

    <%--<div class="elements_inner_wrapper">--%>
        <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
        <!-- #Include file="../includes/body_loader.inc" -->
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div id="divContent" style="display: none">
            <div class="rightcol">
                <div class="content_right">
                    <!-- #Include file="../includes/rcol_services.aspx" -->
                    <div class="seperator">
                    </div>
                    <!--
                    <div class="tip">
                        <div class="head">
                        </div>
                        <div class="body" id="spanPartnerLogo">
                            <h1>
                                Our Merchants</h1>
                            <uc12:usrCompanyBigLogoByServices LogoLimitCount="8" CompanyProviderTypeId="100"
                                ID="usrCompanyLogoByServices1" runat="server" />
                        </div>
                        <div class="foot">
                        </div>
                    </div>
                    -->
                </div>
            </div>

            <script type="text/javascript">
                IncreaseProgress(10);
            </script>

            <div id="contentBody">

                <script type="text/javascript">
                    IncreaseProgress(20);
                </script>

                <div class="sr_wrapper">
                    <div class="sr_content">
                        <div class="s_bubble">
                            <p>
                                If you are not looking for
                                <br />
                                insurance just yet but would
                                <br />
                                like to receive reminder emails
                                <br />
                                about products provided by
                                <br />
                                CompareXpress.com, just
                                <br />
                                leave your details below and
                                <br />
                                we will send you a reminder
                                <br />
                                one month ahead of your
                                <br />
                                identified product.</p>
                        </div>
                        <div class="sr_form">
                            <h1>
                                Car Insurance Renewal Reminder</h1>
                            <div class="row pad_10b">
                                <asp:ValidationSummary ID="vsCarProfile" runat="server" ValidationGroup="reminder"
                                    ShowSummary="True" CssClass="errorSummary" HeaderText="Oops... Please complete the form">
                                </asp:ValidationSummary>
                            </div>
                            <div id="divReminder" runat="server">
                                <div class="f_row">
                                    <span class="form_l name_ico">Full Name</span>
                                    <div class="f_field">
                                        <asp:TextBox ID="txtFullName" MaxLength="80" runat="server" class="text" Width="206px"></asp:TextBox>
                                        <span class="indicator">
                                            <asp:RequiredFieldValidator ID="rfvFullName" runat="server" ControlToValidate="txtFullName"
                                                CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="reminder"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revFullName" runat="server" ValidationExpression="^[a-zA-Z''-'\s]{1,80}$"
                                                CssClass="validationErrorControl" ControlToValidate="txtFullName" ErrorMessage=""></asp:RegularExpressionValidator></span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(40);
                                </script>

                                <div class="f_row">
                                    <span class="form_l email_ico">Email Address</span>
                                    <div class="f_field">
                                        <asp:TextBox ID="txtEmailAddress" MaxLength="250" runat="server" class="text" Width="206px"></asp:TextBox>
                                        <span class="indicator">
                                            <asp:RequiredFieldValidator ID="rfvEmailAddress" runat="server" ControlToValidate="txtEmailAddress"
                                                Display="Dynamic" CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="reminder"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revEmailAddress" runat="server" ControlToValidate="txtEmailAddress"
                                                CssClass="validationErrorControl" ErrorMessage="" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                ValidationGroup="reminder"></asp:RegularExpressionValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="f_row">
                                    <span class="form_l mobile_ico">Mobile Number</span>
                                    <div class="f_field">
                                        <uc1:usrPhoneNo ID="txtMobileNo" ValidationGroup="reminder" IsEnabled="true" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                            PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                            runat="server" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(55);
                                </script>

                                <div class="f_row">
                                    <span class="form_l date_ico">Car</span>
                                    <div class="f_field" style="z-index: 50;">
                                        <asp:DropDownList ID="ddlCarMonth" runat="server">
                                            <asp:ListItem Value="-1">Please select a renewal month</asp:ListItem>
                                            <asp:ListItem Value="1">January</asp:ListItem>
                                            <asp:ListItem Value="2">February</asp:ListItem>
                                            <asp:ListItem Value="3">March</asp:ListItem>
                                            <asp:ListItem Value="4">April</asp:ListItem>
                                            <asp:ListItem Value="5">May</asp:ListItem>
                                            <asp:ListItem Value="6">June</asp:ListItem>
                                            <asp:ListItem Value="7">July</asp:ListItem>
                                            <asp:ListItem Value="8">August</asp:ListItem>
                                            <asp:ListItem Value="9">September</asp:ListItem>
                                            <asp:ListItem Value="10">October</asp:ListItem>
                                            <asp:ListItem Value="11">November</asp:ListItem>
                                            <asp:ListItem Value="12">December</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCarMonth" runat="server"
                                            ControlToValidate="ddlCarMonth" ErrorMessage="" InitialValue="-1" ValidationGroup="reminder"
                                            Display="Dynamic" Text=""></asp:RequiredFieldValidator>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(70);
                                </script>

                                <div class="f_row">
                                    <asp:Label ID="lblAboutYouAssumption" runat="server" CssClass="assumption"></asp:Label>
                                </div>
                                <div id="divSubmitLoading" style="display: none">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td align="center" valign="middle">
                                                <img src="../images/loading7.gif" id="imgLoading" alt="Loading" width="30" height="20" />
                                                <span id="divLoadingMessage">Please wait...</span>
                                            </td>
                                        </tr>
                                        <tr align="right">
                                            <td>
                                                <a id="lnkStop" href="javascript:StopSubmit();">Cancel</a>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="f_row sr_button">
                                    <%--<asp:ImageButton ID="btnSetReminder" OnClick="btnSetReminder_Click" OnClientClick="LoadValidationErrorCss();"
                                        runat="server" ImageUrl="~/images/buttons/submit_but.gif" ValidationGroup="reminder"
                                        AlternateText="Set Reminder" ToolTip="Set Reminder for Insurance" />--%>
                                    <asp:Button ID="btnSetReminder" runat="server" CssClass="button_submit" ValidationGroup="reminder"
                                        OnClientClick="LoadValidationErrorCss();if (Page_ClientValidate('reminder')){this.removeAttribute('onmouseout'); this.removeAttribute('onmouseup'); this.className='button_processing';}"
                                        onmousedown="this.className = 'button_submit_mousedown';" onmouseup="this.className = 'button_submit';"
                                        onmouseout="this.className = 'button_submit';" OnClick="btnSetReminder_Click" />
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(80);
                                </script>

                            </div>
                            <div class="f_row" id="divThankYou" runat="server">
                                <asp:Label ID="lblSetInsMessage" Text="" Font-Size="Large" ForeColor="Green" Font-Bold="true"
                                    Font-Names="Arial" runat="server"></asp:Label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>

                <script type="text/javascript">
                    IncreaseProgress(90);
                </script>

                <%-- <div class="seperator"></div>
               <div>
                    <a href="/car-insurance/"><img src="/images/banners/pv_horz.jpg" alt="Free Pertol Vouchers" width="745" height="62" /></a>
                </div>--%>
                
                <!--------------CONTENT HERE -------------->
            </div>
        </div>

        <script type="text/javascript">
            //<![CDATA[

            //            function CheckSIR() {
            //                var ddlCarMonth = document.getElementById('<=ddlCarMonth.ClientID>');

            //                var rfvCarMonth = document.getElementById('<=rfvCarMonth.ClientID>');

            //                if (ddlCarMonth.value > 0 || ddlPAMonth.value > 0) {
            //                    if (ddlCarMonth.value < 0)
            //                        ValidatorEnable(rfvCarMonth, false);
            //                    else
            //                        ValidatorEnable(rfvCarMonth, true);

            //                    if (ddlPAMonth.value < 0)
            //                        ValidatorEnable(rfvPAMonth, false);
            //                    else
            //                        ValidatorEnable(rfvPAMonth, true);

            //                    /*if (ddlMedicalMonth.value < 0)
            //                        ValidatorEnable(rfvMedicalMonth, false);
            //                    else
            //                        ValidatorEnable(rfvMedicalMonth, true);*/
            //                }
            //                else {
            //                    ValidatorEnable(rfvCarMonth, true);
            //                    ValidatorEnable(rfvPAMonth, true);
            //                    //ValidatorEnable(rfvMedicalMonth, true);
            //                }
            //            }
            IncreaseProgress(100);

            HideLoading();

            //]]--> 
        </script>

    <%--</div>--%>
</asp:Content>
